

namespace ciji.Core
{
    /// <summary>
    /// 
    /// </summary>
    [SugarTable("cts_AssessPerson", "", IsDisabledUpdateAll = true)]
    public class cts_AssessPerson : DEntityBase
    {



        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public string Name { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public string Sex { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public int Age { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public string Nation { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public string IdCard { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public string Address { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public string Birthday { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public string BirthAddress { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public int SupportType { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public string Remark { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public int OrderIndex { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public string GroupId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public string GroupName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public string GroupDesc { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public string GroupTown { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public int IsNew { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public int IsSaved { get; set; }


        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public string SavedSql { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public int State { get; set; }


        [SugarColumn(IsIgnore = true)]
        public string FinalState
        {
            get
            {
                if (AssessInfo == null) {
                    return "";
                }
                return Util.GetLevelStr(AssessInfo.AssessType, AssessInfo.FinalLevel);
            }
        }


        [SugarColumn(IsIgnore = true)]
        public string CompanySign { get; set; }

     
        [Navigate(NavigateType.OneToOne, nameof(Gid), nameof(cts_AssessInfo.AssessPeresonId))]
        public cts_AssessInfo AssessInfo { get; set; }



    }
}